package cn.segment.core.dictionary;

/**
 * 
 * @author Huang Yue
 * @version 创建时间：2010-6-8 下午01:58:41
 */
public class TreeNode
{   
    public char word;
    public TreeNode right;
    public TreeNode left;
    public TreeNode child;
    public boolean isEnd;
    
    /**
     * 
     */
    public TreeNode(){
        super();
    }

    /**
     * 
     * @param word
     * @param right
     * @param left
     * @param child
     * @param isEnd
     */
    public TreeNode(char word, TreeNode right, TreeNode left, TreeNode child,
            boolean isEnd) {
        super();
        this.word = word;
        this.right = right;
        this.left = left;
        this.child = child;
        this.isEnd = isEnd;
    }

    public TreeNode(char word, boolean isEnd) {
        super();
        this.word = word;
        this.isEnd = isEnd;
    }
    
}
